package com.buu.manager.service.impl;

import com.buu.manager.dao.StudyResourceDao;
import com.buu.manager.domain.StudyResourceDO;
import com.buu.manager.service.StudyResourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 学习资源服务
 */
@Service
public class StudyResourceServiceImpl implements StudyResourceService {

    @Autowired
    private StudyResourceDao studyResourceDao;

    @Override
    public StudyResourceDO get(Long id) {
        return studyResourceDao.get(id);
    }

    @Override
    public List<StudyResourceDO> list(Map<String, Object> param) {
        return studyResourceDao.list(param);
    }

    @Override
    public int count(Map<String, Object> map) {
        return studyResourceDao.count(map);
    }

    @Override
    public int save(StudyResourceDO obj) {
        return studyResourceDao.save(obj);
    }

    @Override
    public int update(StudyResourceDO obj) {
        return studyResourceDao.update(obj);
    }

    @Override
    public int remove(Long id) {
        return studyResourceDao.remove(id);
    }

    @Override
    public List<StudyResourceDO> viewlist(Map<String, Object> param) {
        return studyResourceDao.viewlist(param);
    }

    @Override
    public int viewlistcount(Map<String, Object> map) {
        return studyResourceDao.viewlistcount(map);
    }

}
